package com.sos.model.dto;

import lombok.Data;

import java.time.LocalDateTime;

@Data
public class UserResponseDTO {
    private Long id;
    private String username;
    private String phone;
    private String email;
    private String realName;
    private Integer gender;
    private Integer canHelp;
    private Integer status;
    private String avatar;
    private LocalDateTime createdTime;
    
    public String getAvatarOrDefault() {
        return (avatar != null && !avatar.isEmpty()) ? avatar : "/api/files/default-avatar.png";
    }
}